package com.yida.gwj.deposit.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author lqq
 * @date 2023-03-02
 */
@ApiModel("创建公用户请求参数")
public class GwjPublicAccountRequest implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("楼栋名称")
	@Size(max = 255,message = "楼栋名称不得超过255个字符")
	private String buildName;

	@ApiModelProperty("房号")
	@Size(max = 255,message = "房号名称不得超过255个字符")
	private String roomNum;

	@ApiModelProperty("金额")
	@Digits(integer = 9,fraction = 2,message = "金额格式不正确")
	@DecimalMax(value = "999999999.99",message = "金额最大不得超过999999999.99")
	private BigDecimal publicMoney;

	@ApiModelProperty("业务ID")
	private Long bizId;

	@ApiModelProperty("业务楼栋ID")
	private Long bizBuildId;

	public Long getBizBuildId() {
		return bizBuildId;
	}

	public void setBizBuildId(Long bizBuildId) {
		this.bizBuildId = bizBuildId;
	}

	public String getBuildName() {
		return buildName;
	}

	public void setBuildName(String buildName) {
		this.buildName = buildName;
	}

	public String getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(String roomNum) {
		this.roomNum = roomNum;
	}

	public BigDecimal getPublicMoney() {
		return publicMoney;
	}

	public void setPublicMoney(BigDecimal publicMoney) {
		this.publicMoney = publicMoney;
	}

	public Long getBizId() {
		return bizId;
	}

	public void setBizId(Long bizId) {
		this.bizId = bizId;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("GwjPublicAccountRequest{");
		sb.append("buildName='").append(buildName).append('\'');
		sb.append(", roomNum='").append(roomNum).append('\'');
		sb.append(", publicMoney=").append(publicMoney);
		sb.append(", bizId=").append(bizId);
		sb.append(", bizBuildId=").append(bizBuildId);
		sb.append('}');
		return sb.toString();
	}
}
